package com.thenie.chat.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * 返回状态枚举
 *
 * @author thenie
 * @since 1.0.0
 */
@ToString
@Getter
@AllArgsConstructor
public enum RespBeanEnum {
    //通用
    SUCCESS(200, "SUCCESS"),
    ERROR(500, "服务端异常"),
    NOT_RULES(0,"请求不符合规则"),
    //聊天模块
    SEND_ONE_MESSAGE(1,"有一条消息"),
    SEND_OFFLINE_MESSAGE(2,"有多条离线消息"),
    SEND_FRIEND_REQUEST_MESSAGE(3,"有一条好友请求"),
    SEND_NEW_FRIEND_MESSAGE(4,"有新的好友请求通过"),
    SEND_ONLINE_UP_MESSAGE(5,"有好友刚刚上线"),
    SEND_ONLINE_DOWN_MESSAGE(6,"有好友刚刚下线"),
    SEND_RANDOM_CHAT_OK_MESSAGE(7,"匹配随机聊天成功"),
    //登录模块5002xx
    LOGIN_ERROR(500210, "用户名或密码不正确"),
    MOBILE_ERROR(500211, "手机号码格式不正确"),
    BIND_ERROR(500212, "参数校验异常"),
    EMAIL_EXIST(500213, "该邮箱已存在"),
    PASSWORD_UPDATE_FAIL(500214, "密码更新失败"),
    SESSION_ERROR(500215, "用户不存在"),
    USERNAME_EXIST(500216,"该用户名已存在"),
    REGISTER_ERROR(500217,"注册失败"),
    CODE_ERROR(500218,"验证码错误"),

    //用户模块400xxx
    UPDATE_USER_ERROR(400210,"客户端请求错误"),
    NO_FRIEND_ERROR(400211,"好友不存在");

    ;
    private final Integer code;
    private final String message;
}